package com.xinchao.ck_mips.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by wq on 2019/5/16.
 * 节目实体类
 */
@Entity
public class ProgramBean {
    @Id(autoincrement = true)
    private Long id;
    /**
     * 节目版本号唯一
     */
    @Unique
    private String programVersion;
    /**
     * 节目大小
     */
    private Integer programSize;
    /**
     * 节目投放开始时间
     */
    private Long putinStartTime;
    /**
     * 节目投放结束时间
     */
    private Long putinEndTime;
    /**
     * 节目总播放时长
     */
    private Long programDuration;
    /**
     * 节目投放限制
     */
    private String putinLimit;
    /**
     * 节目投放级别
     * all_day（所有），work_day（仅工作（周一到周五）），work_end（仅周末（周六+周日））
     */
    private Integer putinLevel;
    @Transient
    private String programInfo;
    @Transient
    private Object sourceInfo;

    private String fileInfo;

    @Generated(hash = 508891124)
    public ProgramBean(Long id, String programVersion, Integer programSize,
            Long putinStartTime, Long putinEndTime, Long programDuration,
            String putinLimit, Integer putinLevel, String fileInfo) {
        this.id = id;
        this.programVersion = programVersion;
        this.programSize = programSize;
        this.putinStartTime = putinStartTime;
        this.putinEndTime = putinEndTime;
        this.programDuration = programDuration;
        this.putinLimit = putinLimit;
        this.putinLevel = putinLevel;
        this.fileInfo = fileInfo;
    }

    @Generated(hash = 819471023)
    public ProgramBean() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProgramVersion() {
        return programVersion;
    }

    public void setProgramVersion(String programVersion) {
        this.programVersion = programVersion;
    }

    public Integer getProgramSize() {
        return programSize;
    }

    public void setProgramSize(Integer programSize) {
        this.programSize = programSize;
    }

    public Long getPutinStartTime() {
        return putinStartTime;
    }

    public void setPutinStartTime(Long putinStartTime) {
        this.putinStartTime = putinStartTime;
    }

    public Long getPutinEndTime() {
        return putinEndTime;
    }

    public void setPutinEndTime(Long putinEndTime) {
        this.putinEndTime = putinEndTime;
    }

    public Long getProgramDuration() {
        return programDuration;
    }

    public void setProgramDuration(Long programDuration) {
        this.programDuration = programDuration;
    }

    public String getPutinLimit() {
        return putinLimit;
    }

    public void setPutinLimit(String putinLimit) {
        this.putinLimit = putinLimit;
    }

    public Integer getPutinLevel() {
        return putinLevel;
    }

    public void setPutinLevel(Integer putinLevel) {
        this.putinLevel = putinLevel;
    }

    public String getProgramInfo() {
        return programInfo;
    }

    public void setProgramInfo(String programInfo) {
        this.programInfo = programInfo;
    }

    public Object getSourceInfo() {
        return sourceInfo;
    }

    public void setSourceInfo(Object sourceInfo) {
        this.sourceInfo = sourceInfo;
    }

    public String getFileInfo() {
        return fileInfo;
    }

    public void setFileInfo(String fileInfo) {
        this.fileInfo = fileInfo;
    }
}
